package com.paat.common.passwordSecurity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 密码验证信息表
 *
 * @author yonggang.liu@paat.com
 * @since 2019-09-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("password_security")
public class PasswordSecurity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 邮箱账号
     */
    private String email;

    /**
     * 邮箱密码
     */
    private String passWord;

    /**
     * 新邮箱密码
     */
    private String newPassWord;

    /**
     * 安全等级
     */
    private Integer level;


    /**
     * 创建时间
     */
    private Long createTi;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT)
    private Integer createUserId;

    /**
     * 修改时间
     */
    private Long modifyTi;

    /**
     * 修改者
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer modifyUserId;


    public static final String ID = "id";

    public static final String EMAIL = "email";

    public static final String PASS_WORD = "pass_word";

    public static final String NEW_PASS_WORD = "new_pass_word";

    public static final String LEVEL = "level";

    public static final String CREATE_TI = "create_ti";

    public static final String CREATE_USER_ID = "create_user_id";

    public static final String MODIFY_TI = "modify_ti";

    public static final String MODIFY_USER_ID = "modify_user_id";

}